package com.java2_16;

public class NeiBuClass {
//    public String name = "zhangsan";
//    public int age = 20;
//    public void show1(){
//        Test t = new Test();
//        System.out.println(t.school);
//
//    }
    //成员内部类  --  里面可以直接调用外面，外面调用里面要创建对象
//    public class Test {
//        public String school;
//        public void show(){
//            System.out.println(name);
//            System.out.println(age);
//        }
    private String name;
    private int age;
    public class Test{
        public String school;
        int a = 10;
        private double number = 3.14;
    }

    public double getNumber(){
        return new Test().number;
    }


}
